<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 地区模型
// +----------------------------------------------------------------------
namespace app\api\model;

use think\Model;

class Area extends ApiModel
{

    public function getCityList(){
        $list = self::where('pid',0)->field('id,shortname')->select();
        return $this->api_success('获取成功',$list);
    }

}
